//
//  QiandaoVC.m
//  Shengzhuli
//
//  Created by FXGuo on 2018/3/10.
//  Copyright © 2018年 kamangkeji. All rights reserved.
//

#import "QiandaoVC.h"
#import "QRCodeCreateTool.h"
#import "NSDate+Extension.h"

@interface QiandaoVC ()
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *codeLab;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UILabel *addressLab;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWidthCons;



@end

@implementation QiandaoVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"活动签到";
    self.view.backgroundColor = RGBColorOne(240);
    self.imgWidthCons.constant = ScreenW*0.5;
    self.imgView.image = [QRCodeCreateTool createQRCodeWithString:self.model.ID width:ScreenW*0.5];
    self.codeLab.text = [NSString stringWithFormat:@"签到码：%@",self.model.ID];
    self.nameLab.text = self.model.title;
    self.timeLab.text = [NSString stringWithFormat:@"开始时间：%@",[NSDate spToDateMinusString:self.model.startDate]];
    self.addressLab.text = [NSString stringWithFormat:@"举办地址：%@",self.model.address];
}

@end
